// A simple program that computes the square root of a number
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "CmakeConfig.h"
#ifdef LIB_VALID
#include "mylib.h"
#endif
 
int main (int argc, char *argv[])
{
    if (argc == 1){
	fprintf(stdout,"%s : %d.%d\n", argv[0],VERSION_MAJOR,VERSION_MINOR);
	return 1;
    }
 
  double canShu = atof(argv[1]);
 
#ifdef LIB_VALID
  double result = mysqrt(canShu);
#else
  double result = sqrt(canShu);
#endif
 
  fprintf(stdout," %g  sqrt value  is %g\n", canShu, result);
  return 0;
}

